package com.hspedu.abstract_;

public class AbstractDetail02 {
    public static void main(String[] args) {

    }
}


//如果一个类继承了抽象类，则他必须实现抽象类的所有抽象方法，除非他自己也声明为 abstract 类
abstract class E {
    public abstract void hi();
}

abstract class F extends E {}

class G extends E {
    @Override
    public void hi() {
        System.out.println("hi");
    }
}

//抽象类的本质还是类
abstract class D {
    public int n1 = 10;
    public static String name = "lll";

    public void hi() {
        System.out.println("hi");
    }

    public abstract void hello();

    public static void ok() {
        System.out.println("ok");
    }
}